package com.erp.erp_entitys.Department;

import com.erp.erp_entitys.User.UserEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName DepartmentTreeEntity
 * @Description TODO
 * @Author songjizhen
 * @Date 2020-07-13 14:46
 * @Version 1.0
 */
 public class DepartmentTreeEntity2 implements Serializable {
     private Integer id;

    /**
     * 部门编码
     */
     private String code;

    /**
     * 部门名称
     */
     private String name;

    /**
     * 备注、描述、说明
     */
     private String desc;

    /**
     * 创建时间
     */
     private Date createTime;

    /**
     * 创建者（员工号）
     */
     private String creator;

    /**
     * 上级部门
     */
     private String pid;

    /**
     * 所属公司编码
     */
     private String companyCode;
     private List<DepartmentTreeEntity2> children;


    /**
     * 最后一级部门下挂接人员
     */
     private List<UserEntity> users;

    public List<UserEntity> getUsers() {
        return users;
    }

    public void setUsers(List<UserEntity> users) {
        this.users = users;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public List<DepartmentTreeEntity2> getChildren() {
        return children;
    }

    public void setChildren(List<DepartmentTreeEntity2> children) {
        this.children = children;
    }
}
